<?php
namespace app\admin\validate\Speech;
use yzh52521\validate\Validate;

class TypeValidate extends validate{

	/**
	 *@description 验证器规则
	 *@buildcode(true)
	*/
	protected $rule = [
		'Appkey'=>['unique:type'],
		'url'=>['require'],
	];

	/**
	 *@description 错误提示
	 *@buildcode(true)
	*/
	protected $message = [
		'Appkey.unique'=>'Appkey已经存在',
		'url.require'=>'url不能为空',
	];

	/**
	 *@description 验证场景
	 *@buildcode(true)
	*/
	protected $scene  = [
		'add'=>['Appkey','url'],
		'update'=>['Appkey','url'],
	];



}